{extend name="base:base" /}
{block name="body"}

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card layui-form">

                <form method="get">



                    <div class="layui-card-body">
                        <input type="hidden" name="category" value="<?php echo input('get.category', ''); ?>" />


                        <div class="layui-input-inline" id="area-picker">
                            <div class="layui-input-inline">
                                <select name="province" class="province-selector" data-value="{$Think.get.province}" lay-filter="province-1">
                                    <option value="">请选择省</option>
                                </select>
                            </div>
                            <div class="layui-input-inline">
                                <select name="city" class="city-selector" data-value="{$Think.get.city}" lay-filter="city-1">
                                    <option value="">请选择市</option>
                                </select>
                            </div>
                            <div class="layui-input-inline">
                                <select name="county" class="county-selector" data-value="{$Think.get.county}" lay-filter="county-1">
                                    <option value="">请选择区</option>
                                </select>
                            </div>
                        </div>


                        <div class="layui-input-inline">
                            <input type="text" name="keyword" placeholder="请输入收件人|电话" autocomplete="off" value="{$Think.get.keyword}"  class="layui-input" />
                        </div>
                        <button class="layui-btn layui-btn-normal" lay-submit><i class="layui-icon"></i></button>

                    </div>

                    <div class="layui-card-body">
                        <table lay-even="" class="layui-table">
                            {$tpl_list}
                        </table>
                    </div>
                    <div class="layui-card-body">
                        <div class="page pull-right">
                            {$page}
                        </div>
                        <button class="layui-btn layui-btn-danger" lay-submit lay-filter="button_submit" href="<?php echo url('deletes'); ?>" >删除</button>  
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>


{/block}


{block name="foot_js"}

<script>
    //一般直接写在一个js文件中
    layui.use(['layer', 'form', 'layarea'], function () {
        var layer = layui.layer
                , form = layui.form
                , layarea = layui.layarea;

        layarea.render({
            elem: '#area-picker',
            change: function (res) {
                //选择结果
                console.log(res);
            }
        });
    });
</script>


{/block}